home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 2 / Meeting Pearls Vol. II (1995)(GTI - Schatztruhe)[!].iso / Pearls / gfx / pbm / source / jpegV5.lha / jpegV5 / man / djpeg.man < prev    next >
Text File  |  1994-09-29  |  9KB  |  265 lines

  1.  
  2.  
  3.  
  4.      DJPEG(1)             AMIGA (28 August 1994)              DJPEG(1)
  5.  
  6.  
  7.  
  8.      NAME
  9.           djpeg - decompress a JPEG file to an image file
  10.  
  11.      SYNOPSIS
  12.           djpeg [ options ] [ filename ]
  13.  
  14.      DESCRIPTION
  15.           djpeg decompresses the named JPEG file, or the standard
  16.           input if no file is named, and produces an image file on the
  17.           standard output.  PBMPLUS (PPM/PGM), BMP, GIF, Targa, or RLE
  18.           (Utah Raster Toolkit) output format can be selected.  (RLE
  19.           is supported only if the URT library is available.)
  20.  
  21.      OPTIONS
  22.           All switch names may be abbreviated; for example, -grayscale
  23.           may be written -gray or -gr.  Most of the "basic" switches
  24.           can be abbreviated to as little as one letter.  Upper and
  25.           lower case are equivalent (thus -GIF is the same as -gif).
  26.           British spellings are also accepted (e.g., -greyscale),
  27.           though for brevity these are not mentioned below.
  28.  
  29.           The basic switches are:
  30.  
  31.           -colors N
  32.                Reduce image to at most N colors.  This reduces the
  33.                number of colors used in the output image, so that it
  34.                can be displayed on a colormapped display or stored in
  35.                a colormapped file format.  For example, if you have an
  36.                8-bit display, you'd need to reduce to 256 or fewer
  37.                colors.
  38.  
  39.           -quantize N
  40.                Same as -colors.  -colors is the recommended name,
  41.                -quantize is provided only for backwards compatibility.
  42.  
  43.           -fast
  44.                Select recommended processing options for fast, low
  45.                quality output.  (The default options are chosen for
  46.                highest quality output.)  Currently, this is equivalent
  47.                to -dct fast -nosmooth -onepass -dither ordered.
  48.  
  49.           -grayscale
  50.                Force gray-scale output even if JPEG file is color.
  51.                Useful for viewing on monochrome displays; also, djpeg
  52.                runs noticeably faster in this mode.
  53.  
  54.           -scale M/N
  55.                Scale the output image by a factor M/N.  Currently the
  56.                scale factor must be 1/1, 1/2, 1/4, or 1/8.  Scaling is
  57.                handy if the image is larger than your screen; also,
  58.                djpeg runs much faster when scaling down the output.
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 9/28/94)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      DJPEG(1)             AMIGA (28 August 1994)              DJPEG(1)
  71.  
  72.  
  73.  
  74.           -bmp Select BMP output format (Windows flavor).  8-bit
  75.                colormapped format is emitted if -colors or -grayscale
  76.                is specified, or if the JPEG file is gray-scale;
  77.                otherwise, 24-bit full-color format is emitted.
  78.  
  79.           -gif Select GIF output format.  Since GIF does not support
  80.                more than 256 colors, -colors 256 is assumed (unless
  81.                you specify a smaller number of colors).
  82.  
  83.           -os2 Select BMP output format (OS/2 1.x flavor).  8-bit
  84.                colormapped format is emitted if -colors or -grayscale
  85.                is specified, or if the JPEG file is gray-scale;
  86.                otherwise, 24-bit full-color format is emitted.
  87.  
  88.           -pnm Select PBMPLUS (PPM/PGM) output format (this is the
  89.                default format).  PGM is emitted if the JPEG file is
  90.                gray-scale or if -grayscale is specified; otherwise PPM
  91.                is emitted.
  92.  
  93.           -rle Select RLE output format.  (Requires URT library.)
  94.  
  95.           -targa
  96.                Select Targa output format.  Gray-scale format is
  97.                emitted if the JPEG file is gray-scale or if -grayscale
  98.                is specified; otherwise, colormapped format is emitted
  99.                if -colors is specified; otherwise, 24-bit full-color
  100.                format is emitted.
  101.  
  102.           Switches for advanced users:
  103.  
  104.           -dct int
  105.                Use integer DCT method (default).
  106.  
  107.           -dct fast
  108.                Use fast integer DCT (less accurate).
  109.  
  110.           -dct float
  111.                Use floating-point DCT method.  The floating-point
  112.                method is the most accurate, but will be the slowest
  113.                unless your machine has very fast floating-point
  114.                hardware.  Also note that results of the floating-point
  115.                method may vary slightly across machines, while the
  116.                integer methods should give the same results
  117.                everywhere.  The fast integer method is much less
  118.                accurate than the other two.
  119.  
  120.           -dither fs
  121.                Use Floyd-Steinberg dithering in color quantization.
  122.  
  123.           -dither ordered
  124.                Use ordered dithering in color quantization.
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 9/28/94)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      DJPEG(1)             AMIGA (28 August 1994)              DJPEG(1)
  137.  
  138.  
  139.  
  140.           -dither none
  141.                Do not use dithering in color quantization.  By
  142.                default, Floyd-Steinberg dithering is applied when
  143.                quantizing colors; this is slow but usually produces
  144.                the best results.  Ordered dither is a compromise
  145.                between speed and quality; no dithering is fast but
  146.                usually looks awful.  Note that these switches have no
  147.                effect unless color quantization is being done.
  148.                Ordered dither is only available in -onepass mode.
  149.  
  150.           -map file
  151.                Quantize to the colors used in the specified image
  152.                file.  This is useful for producing multiple files with
  153.                identical color maps, or for forcing a predefined set
  154.                of colors to be used.  The file must be a GIF or PPM
  155.                file. This option overrides -colors and -onepass.
  156.  
  157.           -nosmooth
  158.                Use a faster, lower-quality upsampling routine.
  159.  
  160.           -onepass
  161.                Use one-pass instead of two-pass color quantization.
  162.                The one-pass method is faster and needs less memory,
  163.                but it produces a lower-quality image.  -onepass is
  164.                ignored unless you also say -colors N.  Also, the one-
  165.                pass method is always used for gray-scale output (the
  166.                two-pass method is no improvement then).
  167.  
  168.           -maxmemory N
  169.                Set limit for amount of memory to use in processing
  170.                large images.  Value is in thousands of bytes, or
  171.                millions of bytes if "M" is attached to the number.
  172.                For example, -max 4m selects 4000000 bytes.  If more
  173.                space is needed, temporary files will be used.
  174.  
  175.           -outfile name
  176.                Send output image to the named file, not to standard
  177.                output.
  178.  
  179.           -verbose
  180.                Enable debug printout.  More -v's give more output.
  181.                Also, version information is printed at startup.
  182.  
  183.           -debug
  184.                Same as -verbose.
  185.  
  186.      EXAMPLES
  187.           This example decompresses the JPEG file foo.jpg,
  188.           automatically quantizes to 256 colors, and saves the output
  189.           in GIF format in foo.gif:
  190.  
  191.                djpeg -gif foo.jpg > foo.gif
  192.  
  193.  
  194.  
  195.      Page 3                                          (printed 9/28/94)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      DJPEG(1)             AMIGA (28 August 1994)              DJPEG(1)
  203.  
  204.  
  205.  
  206.      HINTS
  207.           To get a quick preview of an image, use the -grayscale
  208.           and/or -scale switches.  -grayscale -scale 1/8 is the
  209.           fastest case.
  210.  
  211.           Several options are available that trade off image quality
  212.           to gain speed.  -fast turns on the recommended settings.
  213.  
  214.           -dct fast and/or -nosmooth gain speed at a small sacrifice
  215.           in quality.  When producing a color-quantized image,
  216.           -onepass -dither ordered is fast but much lower quality than
  217.           the default behavior.  -dither none may give acceptable
  218.           results in two-pass mode, but is seldom tolerable in one-
  219.           pass mode.
  220.  
  221.           If you are fortunate enough to have very fast floating point
  222.           hardware, -dct float may be even faster than -dct fast.
  223.  
  224.      ENVIRONMENT
  225.           JPEGMEM
  226.                If this environment variable is set, its value is the
  227.                default memory limit.  The value is specified as
  228.                described for the -maxmemory switch.  JPEGMEM overrides
  229.                the default value specified when the program was
  230.                compiled, and itself is overridden by an explicit
  231.                -maxmemory.
  232.  
  233.      SEE ALSO
  234.           cjpeg(1), rdjpgcom(1), wrjpgcom(1)
  235.           ppm(5), pgm(5)
  236.           Wallace, Gregory K.  "The JPEG Still Picture Compression
  237.           Standard", Communications of the ACM, April 1991 (vol. 34,
  238.           no. 4), pp. 30-44.
  239.  
  240.      AUTHOR
  241.           Independent JPEG Group
  242.  
  243.      BUGS
  244.           Arithmetic coding is not supported for legal reasons.
  245.  
  246.           Still not as fast as we'd like.
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.      Page 4                                          (printed 9/28/94)
  262.  
  263.  
  264.  
  265.